<?php
/**
 * ExtSlider class file
 *
 * @author TrueSoftware B.V. (The Netherlands)
 * @link http://www.ext4yii.com
 * @copyright Copyright 2007-2010 TrueSoftware B.V. all rights reserved.
 * @license http://www.ext4yii.com/license/
 *          EVALUATION VERSION - NOT FOR COMMERCIAL USE OR DISTRIBUTION.
 * @version 0.7.2
 */

class ExtSlider extends ExtBoxComponent
{
    /**
     * Gets the value of ExtJS animate property
     * @return Boolean 
     */
    public function getAnimate()
    {
    	return $this->getConfig("animate");
    }

    /**
     * Sets the value of ExtJS animate property
     * @param Boolean $value 
     */
    public function setAnimate($value)
    {
    	$this->setConfig("animate",$value);
    }

    /**
     * Gets the value of ExtJS clickToChange property
     * @return Boolean 
     */
    public function getClickToChange()
    {
    	return $this->getConfig("clicktochange");
    }

    /**
     * Sets the value of ExtJS clickToChange property
     * @param Boolean $value 
     */
    public function setClickToChange($value)
    {
    	$this->setConfig("clicktochange",$value);
    }

    /**
     * Gets the value of ExtJS decimalPrecision property
     * @return Number/Boolean 
     */
    public function getDecimalPrecision()
    {
    	return $this->getConfig("decimalprecision");
    }

    /**
     * Sets the value of ExtJS decimalPrecision property
     * @param Number/Boolean $value 
     */
    public function setDecimalPrecision($value)
    {
    	$this->setConfig("decimalprecision",$value);
    }

    /**
     * Gets the value of ExtJS increment property
     * @return Number 
     */
    public function getIncrement()
    {
    	return $this->getConfig("increment");
    }

    /**
     * Sets the value of ExtJS increment property
     * @param Number $value 
     */
    public function setIncrement($value)
    {
    	$this->setConfig("increment",$value);
    }

    /**
     * Gets the value of ExtJS keyIncrement property
     * @return Number 
     */
    public function getKeyIncrement()
    {
    	return $this->getConfig("keyincrement");
    }

    /**
     * Sets the value of ExtJS keyIncrement property
     * @param Number $value 
     */
    public function setKeyIncrement($value)
    {
    	$this->setConfig("keyincrement",$value);
    }

    /**
     * Gets the value of ExtJS maxValue property
     * @return Number 
     */
    public function getMaxValue()
    {
    	return $this->getConfig("maxvalue");
    }

    /**
     * Sets the value of ExtJS maxValue property
     * @param Number $value 
     */
    public function setMaxValue($value)
    {
    	$this->setConfig("maxvalue",$value);
    }

    /**
     * Gets the value of ExtJS minValue property
     * @return Number 
     */
    public function getMinValue()
    {
    	return $this->getConfig("minvalue");
    }

    /**
     * Sets the value of ExtJS minValue property
     * @param Number $value 
     */
    public function setMinValue($value)
    {
    	$this->setConfig("minvalue",$value);
    }

    /**
     * Gets the value of ExtJS value property
     * @return Number 
     */
    public function getValue()
    {
    	return $this->getConfig("value");
    }

    /**
     * Sets the value of ExtJS value property
     * @param Number $value 
     */
    public function setValue($value)
    {
    	$this->setConfig("value",$value);
    }

    /**
     * Gets the value of ExtJS vertical property
     * @return Boolean 
     */
    public function getVertical()
    {
    	return $this->getConfig("vertical");
    }

    /**
     * Sets the value of ExtJS vertical property
     * @param Boolean $value 
     */
    public function setVertical($value)
    {
    	$this->setConfig("vertical",$value);
    }

    
    public function __construct()
    {
        parent::__construct();
        $this->configmap = array_merge($this->configmap,array(
            'clicktochange' => 'clickToChange',
            'decimalprecision' => 'decimalPrecision',
            'keyincrement' => 'keyIncrement',
            'maxvalue' => 'maxValue',
            'minvalue' => 'minValue'
        ));

        $this->eventtable = array_merge($this->eventtable,array(
            'beforechange' => array('slider','newValue','oldValue'),
            'change' => array('slider','newValue'),
            'changecomplete' => array('slider','newValue'),
            'drag' => array('slider','e'),
            'dragend' => array('slider','e'),
            'dragstart' => array('slider','e')
        ));


        $this->setXType('slider');
        $this->setXClass('Ext.Slider');
    }    
}
?>